﻿using L.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.EntityModel
{
    [Table("CodeManage_CodeRelate")]
   public class CodeManage_CodeRelate:BaseEntity
    {
        [Key]
        public int ID
        {
            get;
            set;
        }

        public int ProductId
        {
            get;
            set;
        }


        public int ProductBatchId
        {
            get;
            set;
        }


        public int EnterpriseId
        {
            get;
            set;
        }

        public string CodeBatch
        {
            get;
            set;
        }

        /// <summary>
        /// 关联方式  0  整批关联   1 号段关联
        /// </summary>
        public int RelateType
        {
            get;
            set;
        }
        /// <summary>
        /// 操作类型  0 码关联   1 码禁用
        /// </summary>
        public int Action
        {
            get;
            set;
        }

        public int Sequence
        {
            get;
            set;
        }


        public int StartCode
        {
            get;
            set;
        }

        public int EndCode
        {
            get;
            set;
        }

        public int RelateCodeNums
        {
            get;
            set;
        }

        public int ChangeLoginID
        {
            get;
            set;
        }

        public string ChangeLoginName
        {
            get;
            set;
        }

        public DateTime ChangeDate
        {
            get;
            set;
        }

        [NotMapped]
        public string BatchName
        {
            get;
            set;
        }
        [NotMapped]
        public string ProductName
        {
            get;
            set;
        }

        /// <summary>
        /// 是否禁用
        /// 0 启用  1 禁用
        /// </summary>
        [NotMapped]
        public int Status { get; set; }
        //禁用单号
        public string WL_CodeDisable { get; set; }

        public string Remark
        {
            get;
            set;
        }


    }


    public class CodeReCallModel
    {

        public CodeManage_CodeRelate Model
        {
            get;
            set;
        }



        public int[] DistributorList
        {
            get;
            set;
        }

    }
}

